package com.cgs.query.event

import com.cgs.query.domain.QueryProject
import org.springframework.context.ApplicationEvent

/**
 * 数据源事件
 */
class QueryProjectEvent(val projectName: String, val type: Type) : ApplicationEvent(projectName) {

    enum class Type {
        DELETE,
        UPDATE,
        LOCK,
        EXE_ERROR,
    }

    var userId: String? = ""
    var originQueryProject: QueryProject? = null
    var newQueryProject: QueryProject? = null
    var e: Exception? = null
    var callName: String? = null
}